<template>
		<view style="min-height: 100vh;display: inline-block;width: 750rpx;background: #F1F1F1;">
			<view class="top">
			
				<view class="info">
					<view class=" u-padding-40 u-text-center " style="margin: auto;width: 200rpx;">
						<u-image :src="user.headimg" width="120" height="120" shape="circle"></u-image>
						<view class="u-font-weight u-margin-top-20" >
							{{user.nickname}}
						</view>
					</view>
				</view>
			</view>
			
			
			
			<view class="" style="width: 700rpx;margin: auto;position: relative;bottom: 40rpx;">
				
				
				<view style="background: #fff;min-height:300rpx;padding: 20rpx;border-radius: 10rpx;">
					
					<view class="u-text-center">
						<view class="u-font-weight">账户余额</view>
						<view style="color: #1989FA;font-size: 60rpx;margin: 40rpx 0;" class="u-font-weight ">￥{{user.commission}}</view>
					</view>
					
					<view class="u-flex u-row-around">
						<u-button size="mini" type="primary" shape="circle" @click="$Go('/pages/coach/tixian')">提现</u-button>
						<u-button size="mini"  type="primary" shape="circle" @click="$Go('/pages/coach/tixianDetail')">明细</u-button>
					</view>
					
				</view>
				
				
				
				<view class="block">
					<u-cell-item :border-bottom="false" title="教练二维码" @click="$Go('/pages/coach/qr')">
						<image src="/static/coachIcon_1.png" class="icon" slot="icon"></image>
					</u-cell-item>
				</view>
				
				
				<view class="block">
					<u-cell-item :border-bottom="false" title="推广中心" @click="$Go('/pages/coach/promote')">
						<image src="/static/coachIcon_2.png" class="icon" slot="icon"></image>
					</u-cell-item>
				</view>
				
			</view>
		
				
		</view>
</template>

<script>
	export default {
		data() {
			return {
				user: {},
				info:{}
			}
		},
		onLoad() {
			this.$u.post('/user/information', {}).then(res => {
				this.user = res;
			}).catch(err => {
	
			})
			
		},
		methods: {
	   
		}
	}
</script>

<style>
	.top {
		width: 750rpx;
		background: linear-gradient(180deg, #3CB4FE 0%, #328DFB 100%);
		color: #fff;
		min-height: 400rpx;
	}
	
	
	.icon {
		width: 48rpx;
		height: 48rpx;
		margin-right: 20rpx;
	}
	
	.block {
		background: #fff;
		margin-top: 20rpx;
		width: 700rpx;
		margin:30rpx auto;
		border-radius: 10rpx;
	}
</style>
